> @3-/fetch/timeout.js
  @3-/fetch/fJson.js:_fJson
  @3-/time/ymd2day.js

fJson = timeout _fJson,6e4

rateUrl = (from_currency, to_currency)=>
  "https://www.mastercard.us/settlement/currencyrate/conversion-rate?fxDate=0000-00-00&transCurr=#{from_currency}&crdhldBillCurr=#{to_currency}&bankFee=0&transAmt=1"

< (from_currency, to_currency)=>
  {data:{fxDate,conversionRate}} = (
    await fJson rateUrl from_currency, to_currency
  )

  [
    ymd2day fxDate
    Math.round conversionRate*1e6
  ]
